#include "Utilities.h"
#include <sstream>
using std::istringstream;
using std::wistringstream;

namespace Utilities
{
    int StringToInt(const string& text, int& number)
    {
        if ((istringstream(text) >> number).fail()) {
            return 1;
        }
        else {
            return 0;
        }
    }
}